package dev.alm.functioncalltooldemo.tool;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
//import org.springframework.stereotype.Component;

public class WeatherTool {

    @Tool(name = "get_weather", value = "根据用户提供的城市和时间信息，查询天气情况")
    public String getWeather(@P("城市") String city, @P("时间") String time) {
        System.out.println("get weather...");
        System.out.println("城市：" + city);
        System.out.println("时间：" + time);
        return "天气查询功能正在开发中...";
    }

}
